package com.fduss.sota.dao;

import com.fduss.sota.domain.RiskCheckTemplate;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author duocai
 * @Date 2017/6/3
 * @Time 15:21
 */
@Repository
public interface RiskCheckTemplateDao extends JpaRepository<RiskCheckTemplate, Long> {

    List<RiskCheckTemplate> getRiskCheckTemplatesByName(String name);

    List<RiskCheckTemplate> getRiskCheckTemplatesByNameContaining(String key);

    List<RiskCheckTemplate> getRiskCheckTemplatesByDescriptionContaining(String key);

    List<RiskCheckTemplate> getRiskCheckTemplatesByNameContainingOrDescriptionContaining(String key1, String key2);
}
